﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Section.cs" company="">
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace MsForgeReboot.Framework.Entities {
    #region Usings

    using System.ComponentModel.DataAnnotations;

    #endregion

    /// <summary>
    ///   The section.
    /// </summary>
    public class Section {
        #region Public Properties

        /// <summary>
        ///   Gets or sets the id.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        ///   Gets or sets the order.
        /// </summary>
        [Required]
        public int Order { get; set; }

        /// <summary>
        ///   Gets or sets the page.
        /// </summary>
        public virtual Page Page { get; set; }

        /// <summary>
        ///   Gets or sets the title.
        /// </summary>
        [Required(AllowEmptyStrings = false)]
        [MaxLength(200)]
        public string Title { get; set; }

        [Required(AllowEmptyStrings=false)]
        [MaxLength(255)]
        public string UrlPointer { get; set; }

        #endregion
    }
}